package Factory;

import java.sql.Connection; // Conex�o SQL
import java.sql.DriverManager; // Drive de conex�o SQL
import java.sql.SQLException; // Tratamento de exce��o

public class ConnectionFactory {

	public Connection getConnection() {
		try {
			return DriverManager.getConnection("jdbc:mysql://localhost/estoque", "root", "p.Natalino");
			
		} catch (SQLException excecao) {
			throw new RuntimeException(excecao);
		}
		
	}
}
